package storeEntity

// EbStoreOrderRefund 退款订单表
type StoreOrderRefund struct {
	ID                int64   `json:"id" gorm:"column:id" form:"id"`                                                    // 自增ID
	StoreOrderId      int64   `json:"store_order_id" gorm:"column:store_order_id" form:"store_order_id"`                // 订单表ID
	StoreId           int64   `json:"store_id" gorm:"column:store_id" form:"store_id"`                                  // 门店ID
	OrderId           string  `json:"order_id" gorm:"column:order_id" form:"order_id"`                                  // 订单号
	Uid               int64   `json:"uid" gorm:"column:uid" form:"uid"`                                                 // 用户UID
	RefundType        int8    `json:"refund_type" gorm:"column:refund_type" form:"refund_type"`                         // 退款申请类型
	RefundNum         int64   `json:"refund_num" gorm:"column:refund_num" form:"refund_num"`                            // 退款件数
	RefundPrice       float64 `json:"refund_price" gorm:"column:refund_price" form:"refund_price"`                      // 退款金额
	RefundedPrice     float64 `json:"refunded_price" gorm:"column:refunded_price" form:"refunded_price"`                // 已退款金额
	RefundPhone       string  `json:"refund_phone" gorm:"column:refund_phone" form:"refund_phone"`                      // 退款电话
	RefundExpress     string  `json:"refund_express" gorm:"column:refund_express" form:"refund_express"`                // 退货快递单号
	RefundExpressName string  `json:"refund_express_name" gorm:"column:refund_express_name" form:"refund_express_name"` // 退货快递名称
	RefundExplain     string  `json:"refund_explain" gorm:"column:refund_explain" form:"refund_explain"`                // 退款用户说明
	RefundImg         string  `json:"refund_img" gorm:"column:refund_img" form:"refund_img"`                            // 退款图片
	RefundReason      string  `json:"refund_reason" gorm:"column:refund_reason" form:"refund_reason"`                   // 不退款的理由
	RefuseReason      string  `json:"refuse_reason" gorm:"column:refuse_reason" form:"refuse_reason"`                   // 拒绝原因
	Remark            string  `json:"remark" gorm:"column:remark" form:"remark"`                                        // 备注
	RefundedTime      int64   `json:"refunded_time" gorm:"column:refunded_time" form:"refunded_time"`                   // 处理时间
	CartInfo          string  `json:"cart_info" gorm:"column:cart_info" form:"cart_info"`                               // 退款商品信息
	IsCancel          int8    `json:"is_cancel" gorm:"column:is_cancel" form:"is_cancel"`                               // 用户是否取消
	IsPinkCancel      int8    `json:"is_pink_cancel" gorm:"column:is_pink_cancel" form:"is_pink_cancel"`                // 是否拼团自动取消
	IsDel             int8    `json:"is_del" gorm:"column:is_del" form:"is_del"`                                        // 取消申请
	AddTime           int64   `json:"add_time" gorm:"column:add_time" form:"add_time"`                                  // 申请退款时间
	IsSystemDel       int8    `json:"is_system_del" gorm:"column:is_system_del" form:"is_system_del"`                   // 系统删除
}

// TableName 表名称
func (*StoreOrderRefund) TableName() string {
	return "eb_store_order_refund"
}
